package com.test;

public class ArrayTest10 {
    public static void main(String[] args) {
        /*
        两个数组指向同一个空间
         */
        int []arr1={11,22};
        int []arr2=arr1;
        System.out.println(arr1[0]);
        System.out.println(arr2[0]);

        arr2[0]=33;
        System.out.println(arr1[0]);
        System.out.println(arr2[0]);
    }
}
